package sandbox;

public class Mem {
	public static void main(String[] args) {
//		long total = Runtime.getRuntime().totalMemory();
//		long free = Runtime.getRuntime().freeMemory();
//		System.out.println(total/1000);
//		System.out.println(free/1000);
		long mem = Runtime.getRuntime().totalMemory()
				- Runtime.getRuntime().freeMemory();
		System.out.println("Mem Consumed = " + mem / 1000 + " kb");
	}

}
